< previous page page_512 next page >

Page 512
12181-0512a.gif
Figure 18.8.
The Locals window displays all local variables and all properties associated with the current form.
Breakpoints in Code
At designtime, you can modify the design or code of the application, but you cannot see how the changes will affect the way the application will execute. At runtime, you can watch how the application will execute, but you cannot change the code or any of the values being processed. By using the Break mode, you can halt the execution of the application and look at a snapshot of its condition at that moment. Variable and property values are retained, so that you can analyze the current state of the application and enter changes that affect how the application executes. The various actions that you can take while the application is in Break mode are:
Modify application code
View any changes to the user interface (form changes)
Determine the procedures that have been called
Track and display the values of any variables, properties, and statements
Modify any values necessary
Specify the next statement you want to be executed
Execute Visual Basic statements in the Immediate window
When testing and debugging the application, you might want to halt the application at certain places in the code where you think the problem might have started. This is one of

 
< previous page page_512 next page >

If you like this book, buy it!